import request from '@/utils/request'

// 查询管护人员列表
export function listGhy(query) {
  return request({
    url: '/farmwell/ghy/list',
    method: 'get',
    params: query
  })
}

// 查询管护人员详细
export function getGhy(id) {
  return request({
    url: '/farmwell/ghy/' + id,
    method: 'get'
  })
}

// 新增管护人员
export function addGhy(data) {
  return request({
    url: '/farmwell/ghy',
    method: 'post',
    data: data
  })
}

// 修改管护人员
export function updateGhy(data) {
  return request({
    url: '/farmwell/ghy',
    method: 'put',
    data: data
  })
}

// 删除管护人员
export function delGhy(id) {
  return request({
    url: '/farmwell/ghy/' + id,
    method: 'delete'
  })
}
